@brief Opens a frontend and allocates a structure to work with
@ingroup frontend
@param adapter Number of the adapter to open
@param frontend Number of the frontend to open
@param verbose Verbosity level of the messages that will be
printed
@param use_legacy_call Force to use the DVBv3 calls, instead of using
the DVBv5 API
@param logfunc Callback function to be called when a log event
happens. Can either store the event into a file
or to print it at the TUI/GUI. If NULL, the
library will use its internal handler.
@param flags Flags to be passed to open. Currently only two
flags are supported: O_RDONLY or O_RDWR.
Using O_NONBLOCK may hit unexpected issues.
@todo Add/check support for O_NONBLOCK at the scan routines.
@details This function should be called before using any other function at
the frontend library (or the other alternatives: dvb_fe_open() or
dvb_fe_dummy().
In general, this is called using O_RDWR, except if all that it is wanted
is to check the DVB frontend statistics.
@return Returns a pointer to an allocated data pointer or NULL on error.
@brief Opens a frontend and allocates a structure to work with @ingroup frontend
@param adapter Number of the adapter to open @param frontend Number of the frontend to open @param verbose Verbosity level of the messages that will be printed @param use_legacy_call Force to use the DVBv3 calls, instead of using the DVBv5 API @param logfunc Callback function to be called when a log event happens. Can either store the event into a file or to print it at the TUI/GUI. If NULL, the library will use its internal handler. @param flags Flags to be passed to open. Currently only two flags are supported: O_RDONLY or O_RDWR. Using O_NONBLOCK may hit unexpected issues.
@todo Add/check support for O_NONBLOCK at the scan routines.
@details This function should be called before using any other function at the frontend library (or the other alternatives: dvb_fe_open() or dvb_fe_dummy().
In general, this is called using O_RDWR, except if all that it is wanted is to check the DVB frontend statistics.
@return Returns a pointer to an allocated data pointer or NULL on error.